﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Dapper.IService;
using Dapper.Model;
using Microsoft.AspNetCore.Mvc;

namespace DapperCore.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class ValuesController : ControllerBase
    {

        //public IUserService _userService;
        //public ValuesController(IUserService userService)
        //{
        //    this._userService = userService;
        //}

        // GET api/values
        [HttpGet]
        public ActionResult<IEnumerable<string>> Get()
        {
            return new string[] { "value1", "value2" };
        }

        // GET api/values/5
        [HttpGet("{id}")]
        public ActionResult<string> Get(int id)
        {
            return "value";
        }

        //[HttpGet]
        //public List<User> GetUsers()
        //{
        //    return _userService.GetUsers();
        //}

        //[HttpGet]
        //public User GetUser(string userId)
        //{
        //    return _userService.GetUser(userId);
        //}
    }
}
